<%--
  Created by IntelliJ IDEA.
  User: wenze-zero
  Date: 2021-06-03-003
  Time: 上午 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Title</title>
</head>
<body>
<%
  String str="12";
  int number=Integer.parseInt(str);
%>
该数的平方为:<%=number*number%>
<hr>
<%
  Cookie cookie=new Cookie("number",str);
  cookie.setMaxAge(600);
  response.addCookie(cookie);
%>
<a href="test3302.jsp">到达p2</a>
</body>
</html>
